DIR=$( dirname "$(readlink -f  ${BASH_SOURCE[0]})" )
PARENTPATH=$(dirname ${DIR})
sh ${PARENTPATH}/valid_docker_images.sh rabbitmq
if [ $? != "1" ]; then
        #拉取redis
        sudo docker pull  rabbitmq:management
fi
if [ ! -d "/opt/soft/docker/rabbitmq" ];then
sudo mkdir -p /opt/soft/docker/rabbitmq
fi
sudo docker run -di --name myrabbit --restart=always -e RABBITMQ_DEFAULT_USER=admin -e  RABBITMQ_DEFAULT_PASS=025025 -p 15672:15672 -p 5672:5672  -p 25672:25672 -p 61613:61613 -p18883:1883 rabbitmq:management
